package com.wanwu.channel.dto.vo;

import com.wanwu.channel.common.enums.ChannelPayStatus;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PayQueryStrategyResponse
 * @Description 支付订单查询公共返回
 * @Author husheng
 * @Date 2020-01-16 21:50
 */
@Data
public class PayQueryStrategyRespVo implements Serializable {

    private static final long serialVersionUID = 7672666019798411905L;

    private ChannelPayStatus channelPayStatus;

    private String tlOrderNo;

    private String thirdOrderNo;

    /**
     *  业务线商家交易单号,上送标识为0时有值
     */

    private String bizOrderNo;

    /**
     * 渠道单号 上送标识为1时有值
     */
    private String channelNo;

    /**
     * 上送第三方单号标识 0-业务线支付单号 1-渠道编号
     */
    private Integer thirdFlag;

    private String acct;

    private Date finishTime;

    private String errCode;

    private String errMsg;

    private String buyerId;

    private String buyerEmail;

    private String feeAmount;

    //注意：查询结果返回报文，通联H5、支付宝需要赋值，其他通道不需要赋值
    private String queryResp;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

}